package First;

/**
 * Created by msingh on 2014-06-27.
 */
public class NonRepeatedCharacter {
    public String norepeat(String[] str){
        for(int i=0;i<=str.length;i++){
            for(int x = i + 1;x < str.length - i ; x++){
                if(str[i] == str[x]){
                    String temp = str[x];
                    return temp;
                }

            }
        }
        return null;
    }
}
/*
[r,e,p,e,a,t]
for (i = 0; i < 6 ; i++)
	for (x = i+1, x<6, x++)
		test = str[i]
		compare = str[x]
		if (test == compare){
		print: letter str[i] are repeating
		}
		else{
		Print: Non Repeating letter is: str[i]
		}

*/